var VM = new Vue({
    el: "#app",
    data: {
        city: '',
        weatherList: []
    },
    methods: {
        searchWeather: function() {
            console.log("天气查询")
            var that = this;
            axios.get("http://wthrcdn.etouch.cn/weather_mini?city=" + this.city).then(
                function(response) {
                    console.log(response);
                    that.weatherList = response.data.data.forecast;
                },
                function(error) {

                })
        }
    },
})